package com.hcandtx.Bms.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcandtx.Bms.Vo.OrderVo;
import com.hcandtx.Bms.bean.Order;
import com.hcandtx.Bms.mapper.OrderMapper;
import com.hcandtx.Bms.service.IOrderService;

@Service("orderService")
public class OrderServiceImpl implements IOrderService {

	@Autowired
	private OrderMapper orderMapper;
	
	@Override
	public int add(Order order) {
		
		return orderMapper.add(order);
	}

	@Override
	public Order findId(int id) {
	
		return orderMapper.findId(id);
	}

	@Override
	public int update(Order order) {
		
		return orderMapper.update(order);
	}

	@Override
	public int deleteById(int id) {
		
		return orderMapper.deleteById(id);
	}

	@Override
	public List<Order> findAll() {
		// TODO Auto-generated method stub
		return orderMapper.findAll();
	}

}
